<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="bignumber.js"></script>
    <script>
        const x = new BigNumber('123423523523.23423423423423423423423423423');
        const y = new BigNumber('232323.234234');
        x.toNumber();
        console.log(x.toFormat());

        x.toFormat();   // to print in a ',' way
        x.toFormat(3);
        x.plus(0.1);
        x.minus(0.2);
        x.times(0.223);
        x.mod(32);
        x.eq(y);
        x.gte(y);
        x.lt(y);
        x.lte(y);
        x.negate();
    </script>
</body>
</html>